package com.powernode.spring6.bean;

public class Husband {
    private String husbandName;
    private Wife wife;

    public void setHusbandName(String husbandName) {
        this.husbandName = husbandName;
    }

    public void setWife(Wife wife) {
        this.wife = wife;
    }

    public String getHusbandName() {
        return husbandName;
    }

    @Override
    public String toString() {
        return "Husband{" +
                "husbandName='" + husbandName + '\'' +
                ", wife=" + wife.getWifeName() +
                '}';
    }
}
